package utils;

import sun.misc.Unsafe;

import java.lang.reflect.Field;

public class UnSafeUtils {
	public final static Unsafe unsafe;

	static {
		Field theUnsafe;
		try {
			theUnsafe = Unsafe.class.getDeclaredField("theUnsafe");
			theUnsafe.setAccessible(true);
			unsafe = (Unsafe) theUnsafe.get(null);
		} catch (NoSuchFieldException | IllegalAccessException e) {
			throw new RuntimeException(e);
		}
	}
}
